package com.thf.service;

import com.thf.model.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "product")
public interface ProductService {
    @RequestMapping("/productFindAll")
    ResultData productFindAll(@RequestParam("startPage") Integer startPage, @RequestParam("pageSize") Integer pageSize,@RequestBody Map map);
    @RequestMapping("/getCount")
    Integer getCount( @RequestBody Map map);
    @RequestMapping("/add")
    ResultData add( @RequestBody Map map);
    @RequestMapping("/getProductById")
    ResultData getProductById( @RequestParam("stringToInt")Integer stringToInt);
    @RequestMapping("/update")
    ResultData update( @RequestBody Map map);
    @RequestMapping("/delete")
    ResultData delete(@RequestParam("stringToInt")Integer stringToInt);
}
